﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:q="clr-namespace:Kaskelot.SP.UI.Analys.Controls"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    x:Class="Kaskelot.SP.UI.Analys.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="850" d:DesignWidth="960">

	<Grid x:Name="LayoutRoot" Background="White">
		<Grid.RowDefinitions>
			<!--<RowDefinition Height="20"/>-->
			<RowDefinition Height="20"/>
			<RowDefinition x:Name="ErrorRow" Height="0" />
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="920"/>
		</Grid.ColumnDefinitions>

		<!--<Grid VerticalAlignment="Top" Height="20" Width="920" Grid.Row="0" HorizontalAlignment="Left">
			<HyperlinkButton Name="HelpButton" HorizontalAlignment="Right" TargetName="_blank">
				<Image Source="/Kaskelot.SP.UI.Analys;component/Images/info_properties_16x16.png" Cursor="Hand" />
			</HyperlinkButton>
		</Grid>-->
		<Grid VerticalAlignment="Top" Height="20" Width="920" Grid.Row="0" HorizontalAlignment="Left">
			<HyperlinkButton BorderThickness="0" FontSize="13" Padding="0,0,0,0" Margin="0,0,10,0" FontWeight="Bold" Foreground="Black" x:Name="QueryToggle" Click="ShowQueryButton_Click" HorizontalAlignment="Right">
				<StackPanel Orientation="Horizontal">
					<TextBlock Text="Visa/dölj urval" />
					<Image Source="/Kaskelot.SP.UI.Analys;component/Images/Minimize.png" />
				</StackPanel>
			</HyperlinkButton>
		</Grid>
		<StackPanel Grid.Row="1">
			<Border x:Name="ErrorBox" Background="Transparent" BorderBrush="Red" BorderThickness="2" Margin="0,10,0,0">
				<StackPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="20,20,10,20">
					<Image Source="/Kaskelot.SP.UI.Analys;component/Images/alert_icon_error_29x26.png" Height="29" />
					<TextBlock FontWeight="Bold" Padding="0,5,0,0" x:Name="ErrorText" Width="900" TextWrapping="Wrap" TextTrimming="WordEllipsis" />
				</StackPanel>
			</Border>
		</StackPanel>
		<StackPanel Grid.Row="2" Orientation="Vertical">
			<!--<Border Background="#e6e6e6" BorderBrush="#d6d6d6" BorderThickness="1" Margin="0,0,0,10">-->
				<q:QueryBuilder x:Name="QueryBox" Margin="0" />
			<!--</Border>-->
			<!--<Border Background="#e6e6e6" BorderBrush="#d6d6d6" BorderThickness="1">-->
				<q:GridContainer x:Name="GridBox" Margin="0,10,0,0" />
			<!--</Border>-->
		</StackPanel>
	</Grid>
</UserControl>
